#pragma once
class CTeamModel
{
public:
	CTeamModel(void);
	~CTeamModel(void);

	int m_id;
	int m_companyID;
	CString m_teamName;
	int m_teamLeader;
	int m_monthPlan;
	int m_weekPlan;

	HTREEITEM m_htreeitem;

	void parseFromJson(Json::Value& jsonData);

	static bool compare(const CTeamModel* p1, const CTeamModel* p2)
	{
		if (p1 == nullptr || p2 == nullptr)
		{
			return true;
		}

		return p1->m_companyID < p2->m_companyID;
	}

};

